package com.wwwarehouse.usercenter.bean.authoritydistribute;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author : mundane
 * @time : 2017/9/25 19:24
 * @description :
 * @file : AuthProcessUkidBean.java
 */

public class AuthProcessUkidBean implements Parcelable {

	/**
	 * auUserId : 10002008
	 * businessId : 10001357
	 * processId : 12094100000006026
	 * qrCode : processId=12094100000006026&scanType=AUTH&auUserId=10002008&businessId=10001357
	 * show : false
	 */

	public int auUserId;
	public int businessId;
	public String processId;
	public String qrCode;
	public boolean show;

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(this.auUserId);
		dest.writeInt(this.businessId);
		dest.writeString(this.processId);
		dest.writeString(this.qrCode);
		dest.writeByte(this.show ? (byte) 1 : (byte) 0);
	}

	public AuthProcessUkidBean() {
	}

	protected AuthProcessUkidBean(Parcel in) {
		this.auUserId = in.readInt();
		this.businessId = in.readInt();
		this.processId = in.readString();
		this.qrCode = in.readString();
		this.show = in.readByte() != 0;
	}

	public static final Parcelable.Creator<AuthProcessUkidBean> CREATOR = new Parcelable.Creator<AuthProcessUkidBean>() {
		@Override
		public AuthProcessUkidBean createFromParcel(Parcel source) {
			return new AuthProcessUkidBean(source);
		}

		@Override
		public AuthProcessUkidBean[] newArray(int size) {
			return new AuthProcessUkidBean[size];
		}
	};
}
